//
//  YZTwoBtnView.h
//  kuaiyi
//
//  Created by WGP on 16/5/4.
//
//

#import <UIKit/UIKit.h>

@class YZTwoBtnView;
@protocol YZTwoBtnViewDelegate <NSObject>

@optional
-(void)isHiddenMethodViewWith:(YZTwoBtnView *)twoBtnView;

@end

typedef NS_ENUM(NSInteger,YZSelectedBtnType)
{
    YZSelectedBtnTypeLeft,
    YZSelectedBtnTypeRight,
};

@interface YZTwoBtnView : UIView

@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UIButton *firstBtn;
@property (weak, nonatomic) IBOutlet UIButton *secondBtn;
@property(nonatomic,strong)UIButton *currentSelectedBtn;
@property(nonatomic,weak)id<YZTwoBtnViewDelegate> delegate;
+(instancetype)twoBtnViewWith:(NSString *)title firstBtnTitle:(NSString *)firstTitle secondBtnTitle:(NSString *)secondTitle defaultSelected:(YZSelectedBtnType)selectedBtnType;

@end
